package cn.mingfancloud.基础知识.字符串;

public class SetCharAtDemo {
    public static void main(String[] args) {
        StringBuffer sbf = new StringBuffer("0123456");
        System.out.println("sbf的原值是：" + sbf);
        sbf.setCharAt(3, 'A'); // 将索引为3的字符改为“A”
        System.out.println("修改后的值是：" + sbf);
    }
}
